this._systemdLoginManager.CanPowerOffRemote(Lang.bind(this,
function(result, error) {
if (!error)
- this._haveShutdown = result != 'no';
+ this._haveShutdown = result[0] != 'no';
else
this._haveShutdown = false;
this._consoleKitManager.CanStopRemote(Lang.bind(this,
function(result, error) {
if (!error)
- this._haveShutdown = result;
+ this._haveShutdown = result[0];
else
this._haveShutdown = false;
this._systemdLoginManager.CanRebootRemote(Lang.bind(this,
function(result, error) {
if (!error)
- this._haveRestart = result != 'no';
+ this._haveRestart = result[0] != 'no';
else
this._haveRestart = false;
this._consoleKitManager.CanRestartRemote(Lang.bind(this,
function(result, error) {
if (!error)
- this._haveRestart = result;
+ this._haveRestart = result[0];
else
this._haveRestart = false;
this._session.CanShutdownRemote(Lang.bind(this,
function(result, error) {
if (!error) {
- this._haveShutdown = result;
+ this._haveShutdown = result[0];
this._updateSuspendOrPowerOff();
}
}));